#!/bin/sh
echo "Begin analysis the /etc/password file, make the display more formal "
OLD_IFS="$IFS"
echo "OLD_IFS=$IFS, Has been backup."
IFS=":"
while read line
do
# echo "$line"
#linestr="root,xi,0,0,root,/root,/bin/bash" 
arr=($line)
width=12
 for column in ${arr[@]}
 do
   printf "%${width}s" "$column"
   width=`expr $width + 2`
 done
 echo ""
done </etc/passwd

IFS="$OLD_IFS"
